package com.lostsheep.rpc;

import com.lostsheep.dto.CommonDTO;
import com.lostsheep.dto.UserDTO;

import java.util.List;

/**
 * <b><code>UserRpc</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2024/7/6.
 *
 * @author dengzhen
 * @since spring-cloud-dubbo
 */
public interface UserRpc {

    /**
     * list users
     *
     * @return List<UserDTO>
     */
    CommonDTO<List<UserDTO>> getUsers();

    /**
     * get user
     *
     * @param id user id
     * @return UserDTO
     */
    UserDTO getUser(Long id);
}
